﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Common;
using AutoFacUtils;
using CashFlow.Db.DAL;
using CashFlow.Db.Entity;
using SysAdmin._00_Def;
using SysAdmin._02_Common;

namespace SysAdmin._03_Service._00_Db
{
    public class UserAccountInfoService
    {
        public static UserAccountInfoEntity QueryByUserId(int userId)
        {
            using (var db = SqlSugarHelper.GetDb())
            {
                return db.Queryable<UserAccountInfoEntity>().Where(x => x.UserId == userId).First();
            }
        }
    }
}
